#include <stdio.h>
#include <stdlib.h>

typedef struct Person Person;
struct Person {
  char *name;
  int age;
  char *address;
};

void addAge(Person *p) { p->age++; }

int main(int argc, char *argv[]) {
  /* 结构体传参
   */
  Person person = {.name = "Tom", .age = 20, .address = "北京市海淀区"};
  addAge(&person);
  printf("%d\n", person.age);
  return EXIT_SUCCESS;
}
